-- GENERATED SPELL FOR [Hath'ar Skimmer] --


function spell0_28258(pUnit, Event) --@Encasing Webs,n/a--
pUnit:FullCastSpellOnTarget(51152,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28258', 617, 1)
end

function spell1_28258(pUnit, Event) --@Jump Attack,n/a--
pUnit:FullCastSpellOnTarget(54487,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28258', 532, 1)
end

function Sorts_28258(pUnit, Event)
local choix_sorts_28258 = math.random(0, 1)
if choix_sorts_28258 == 0 then
pUnit:RegisterEvent('spell0_28258', 1, 1)
end
if choix_sorts_28258 == 1 then
pUnit:RegisterEvent('spell1_28258', 1, 1)
end
end

function mob28258_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28258', math.random(1500, 3000), 1)
end

function mob28258_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28258_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28258_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28258, 1, 'mob28258_Action')
RegisterUnitEvent(28258, 2, 'mob28258_Leave')
RegisterUnitEvent(28258, 3, 'mob28258_Kill')
RegisterUnitEvent(28258, 4, 'mob28258_Die')
